<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
   
    $(function(){
        //设置获取HTML值
        $('input:eq(0)').click(function(){
            alert($(this).val());
        });
        $('input:eq(4)').click(function(){
            // 设置文本
            alert($(this).val());
         });
        



    })
    </script>
</head>
<body>
        <input type="button" value="获取元素的HTML代码">
        <input type="button" value="获取文本">
        <input type="button" value="设置元素的HTML代码">
        <input type="button" value="设置文本">
        <input type="button" value="获取到按钮的值">
        <input type="button" value="设置按钮的值">
</body>
</html>